var config = require("../../config.js");
var app = getApp()
Page({

    data:{
        course:{}
    },
    onLoad: function (options) {
        var that = this;
        that.getData(options.id)
    },
    getData(id) {
        let that = this
        wx.request({
            url: 'http://localhost:8080/Examination_System_war/wxappeal/getById',
            data: {
              id
            },
            header: { 'content-type': 'application/x-www-form-urlencoded' },
            method: 'GET',
            dataType: 'json',
            responseType: 'text',
            success: (result) => {
                console.log(result.data)
                that.setData({
                    course:result.data
                })
            },
            fail: () => { },
            complete: () => { }
          });
    }
})